*{
    box-sizing: border-box;
}
/* Global settings */
.team-services-page {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    background: #f7f6f6;
    padding:20px 10px 10px 10px;
    min-height: 420px;
    border-radius: 15px;

}

.hod,
.services-page {
    width: 20%;
    min-height: auto;
    /* min-height: 420px; */
}


.team-members {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    gap: 20px 20px;
}

/* Card settings */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    max-height: 420px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image container */
.img-cont {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.img-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Card content */
.content {
    padding: 10px 10px;
    background: #00b6ce;
}

.name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.title,
.profession {
    font-size: 14px;
    color: #f2eded;
    margin-bottom: 3px;
}

/* Social media icons */
.icons {
    margin-top: 15px;
}

.icons a {
    margin: 0 5px;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.icons a:hover {
    color: #000;
}

/* Horizontal Card */
.horizontal-card .card{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    max-height: 200px;
    min-width: 50%;
}

.horizontal-card .card .img-cont,
.horizontal-card .card .content {
    width: 50%;
}

/* services-page box */
.services-page {
    display: flex;
    justify-content: center;
    /* align-items: center; */
    background-color: #fff;
    border-bottom: 20px solid #00b6ce;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.box {
    width: 100%;

    margin:0;
    padding:0;
    height: 100%;
}

.box h2 {
    color: #fff;
    background: #00b6ce;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 700;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.box ul {
    position: relative;
    background: #fff;
}

.box ul:hover li {
    opacity: 0.2;
}

.box ul li {
    list-style: none;
    padding: 10px;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.box ul li:hover {
    transform: scale(1.1);
    z-index: 5;
    background: #00b6ce;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
    opacity: 1;
}

.box ul li span {
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    background: #00b6ce;
    color: #fff;
    display: inline-block;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 600;
    transform: translateY(-2px);
}

.box ul li:hover span {
    background: #fff;
    color: #00b6ce;
}



/* Responsive Design */
@media screen and (max-width: 1024px) {
    .team-services-page {
        flex-direction: column;
        align-items: center;
    }

    .hod,
    .services-page {
        width: 100%;
        max-width: 90%;
    }

    .team-members {
        width: 90%;
        flex-direction: column;
    }

    .horizontal-card {
        width: 100%;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .team-members {
        width: 100%;
        gap: 15px;
    }

    .card {
        max-height: auto;
    }

    .horizontal-card {
        flex-direction: column;
    }

    .horizontal-card .card .img-cont,
    .horizontal-card .card .content {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .team-services-page {
        flex-direction: column;
    }

    .hod,
    .services-page {
        width: 100%;
    }

    .team-members {
        width: 100%;
    }

    .horizontal-card,
    .card {
        width: 100%;
        max-height: auto;
    }
}